<ul class="nav nav-secondary" >
	<li ><a href="#/salary">工资记录</a></li>
	<li class="active"><a href="#/salary_old">历史查询</a></li>
</ul>
<div style="margin:5px 0 5px 5px;"> 
	<input id="month" class="form-control year" type="text" value="2015-04" >
	<button ng-click="history()"class="btn btn-primary" type="button">查看</button>
	<button ng-click="out()" class="btn btn-primary pull-right" type="button">导出本月工资表</button>
</div>			
<table class="table">
    <thead>
	    <tr>
	    	<th>序号</th>
	    	<th>职工</th>
	    	<th>基础工资</th>
	    	<th>上课提成</th>
	    	<th>招生提成</th>
	    	<th>其他</th>
	    	<th>总共工资</th>
	    	<th>实际工资</th>	    	
	    </tr>
  	</thead>
  	<tbody>
	    <tr ng-repeat="salary in salarys">
	    	<td>{{$index+1}}</td>
	    	<td>{{salary.teacher_name}}</td>
	    	<td>{{salary.based_salary}}</td>			    	
	    	<td>{{salary.teach_added}}</td>
	    	<td>{{salary.intro_added}}</td>
	    	<td>
	    		<table>
	    			<tbody>
	    				<tr ng-repeat="other in salary.other_salary">
			    			<td>{{other.name}}</td>
			    			<td>{{other.type}}{{other.money}}</td>
	    				</tr>
	    			</tbody>
	    		</table>
	    	</td>
	    	<td>{{salary.sum}}</td>
	    	<td>{{salary.real_salary}}</td>
	    </tr>
  	</tbody>
</table>
<ul class="pager" style="margin-left:25%">
    <li class="previous"><a href="#">« 上一页</a></li>
    <li><a href="#">1</a></li>
    <li><a href="#">2</a></li>
    <li class="active"><a href="#">3</a></li>
    <li><a href="#">4</a></li>
    <li><a href="#">5</a></li>
    <li><a href="###" data-toggle="pager" data-placement="top">...</a></li>
    <li><a href="#">10</a></li>
    <li class="next"><a href="#">下一页 »</a></li>
 </ul>

